home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Programming / MCC_NList / Developer / Amiga-E / fakestack.lha / fakestack.readme < prev   
Encoding:
Text File  |  1997-03-22  |  1.1 KB  |  51 lines

  1. Short:    Tells the system where AmigaE stack is.
  2. Author:   Piotr Pawlow <pp@cs.com.pl>
  3. Uploader: Piotr Pawlow <pp@cs.com.pl>
  4. Type:     dev/e
  5. Version:  1.0
  6.  
  7. Programs compiled with AmigaE do not use the stack given by system, but
  8. instead they create their own.  Unfortunately, this is done in non
  9. system-friendly way, so SPLower and SPUpper pointers in task structure keep
  10. old values.  It cause wrong behaviour of all programs which check the
  11. stack (StackMon, StackCheck, MCC NList).
  12. This AmigaE module fixes the problem.  It fakes the SPLower and SPUpper
  13. values.
  14.  
  15. How to use it:
  16. At the beginning of the program add following line:
  17. x:=fakestack() -> Fakes stack pointers' values
  18. At the end type:
  19. fakestack(x)   -> Restore old values
  20.  
  21.  
  22. Example:
  23.  
  24. ----------------------
  25. MODULE 'fakestack'
  26.  
  27. PROC main()
  28. DEF stack
  29.  
  30.   stack:=fakestack()
  31.  
  32. -> Here's your program
  33.  
  34.   fakestack(stack)
  35. ENDPROC
  36. ----------------------
  37.  
  38.  
  39. WARNING:  This is a hack.  It has been tested with registered version of
  40. AmigaE 3.2e.  I don't know how it works with other versions of E.
  41.  
  42.  
  43. If you want to contact me, write to:
  44.  
  45. Piotr Pawlow
  46. ul. Lewartowskiego 12 m 46
  47. 00-185 Warszawa
  48. Poland
  49.  
  50. EMail: pp@cs.com.pl
  51.